package com.vf.cloud.common.datasource.config;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import com.vf.cloud.common.util.DbUtil;
import com.vf.cloud.dev.Dev;

@Primary
@Configuration
public class ActiveRecordPluginConfig implements InitializingBean, DisposableBean {

	public void destroy() throws Exception {
	}

	public void afterPropertiesSet() throws Exception {
		if(!Dev.INTEGRATED_MODE) {
			DbUtil.init();
		}
	}


}
